package com.pzhu.keycloak;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @BelongsProject: keycloak-demo
 * @BelongsPackage: com.sky.keycloakdemo.controller
 * @Author: Sky.yu
 * @CreateTime: 2023-10-19  17:08
 * @Description: TODO
 * @Version: 1.0
 */

@Controller
public class HomeController {

    @GetMapping("/publicPage")
    public String home() {
        return "index";
    }

    @GetMapping("/user")
    public String user() {
        return "user";
    }

    @GetMapping("/admin")
    public String admin() {
        return "admin";
    }
}